#ifdef _WIN32
#include "stdafx.h"
#endif
Application * appli = NULL;

#ifdef __APPLE__
int main()
#elif _CONSOLE
int main(int argc, char * argv[])
#else
int WinMain(HINSTANCE a, HINSTANCE b, LPSTR c, int d)
#endif
{
	try
	{
		appli = new Application;
		appli -> init();
		appli ->  go();
	}
    catch(Ogre::Exception& e)
	{
        cout << e.getFullDescription() << "\n";
	}
    catch(OIS::Exception & e)
    {
        cout << e.what() << "\n";
        
    }
}
